package ExerciseThree;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

import org.junit.Test;

public class ProperTest {
	@Test
	public void test() throws IOException
	{
		FileInputStream is = new FileInputStream(new File("src//jdbc.properties"));
		Properties pros = new Properties();
		//pros.load(fr);
		pros.load(is);
		
		String user = pros.getProperty("user");
		String password=pros.getProperty("password");
		String url=pros.getProperty("url");
		String driverClass=pros.getProperty("driverClass");
		
		System.out.println(user);
	    System.out.println(password);
	    System.out.println(url);
	    System.out.println(driverClass);
	}
}
